#include <iostream>
#include "split_string.h"
using std::cout;
using std::endl;

std::vector<std::string> split(std::string str,std::string pattern)
{
    std::string::size_type pos;
    std::vector<std::string> result;
    pos=str.find(pattern,0);
    std::string s=str.substr(0,pos);
    result.push_back(s);
    std::string s2 = str.substr(pos+1,str.size());
    result.push_back(s2);
    return result;
}
